package org.scboy.dbms.api.entity;

import java.io.Serializable;

/**
 * 数据库列配置类
 */
public class DbColumn implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 唯一ID
	 */
	private String id;
	
	/**
	 * 数据库表ID
	 */
	private String tableId;
	
	/**
	 * 列名称
	 */
	private String name;

	/**
	 * 字段名称
	 */
	private String entityName;
	
	/**
	 * 数据类型
	 */
	private String dbType;

	/**
	 * 是否主键
	 */
	private boolean primary;

	/**
	 * 长度
	 */
	private int length;

	/**
	 * 不为空
	 */
	private boolean notNull;

	/**
	 * 列备注
	 */
	private String comment;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public boolean isPrimary() {
		return primary;
	}

	public void setPrimary(boolean primary) {
		this.primary = primary;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public boolean isNotNull() {
		return notNull;
	}

	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
